package by.yakusekmaxim.bookgid.webapp.page.utils.renderer;

import org.apache.wicket.markup.html.form.IChoiceRenderer;

import by.yakusekmaxim.bookgid.datamodel.Series;


public class SeriesRenderer implements IChoiceRenderer<Series> {

	public static SeriesRenderer INSTANCE = new SeriesRenderer();
	
	@Override
	public Object getDisplayValue(Series object) {

		return object.getName();
	}

	@Override
	public String getIdValue(Series object, int index) {
		return object.getId().toString();
	}

}
